/*
 * @Author: 王灿
 * @Date: 2019-11-09 00:40:05
 * @LastEditTime: 2019-11-26 22:05:06
 * @Description: 登录
 * @FilePath: \scarlet-sparrow-admin\src\api\login.js
 */
import request from '@/utils/request'
// export function getAllDictionaryKeyValue() {
//   return request({
//     url: '/poadmin/dictionary/getAllDictionaryKeyValue/w/v1',
//     method: 'post'
//   })
// }

// 图形验证码
export function getCaptcha(data) {
    return request({
        url: '/captcha.jpg',
        method: 'get',
        data,
        isLogin: true
    })
}

// 手机验证码
export function getCheckCode(data) {
    return request({
        url: '/customer/get_check_code',
        method: 'get',
        data,
        isLogin: true
    })
}

// 登录
export function getLoginAdmin(data) {
    return request({
        url: '/auth/login_4_admin',
        method: 'post',
        data,
        isFile: true,
        isLogin: true
    })
}

// 登出
export function getLoginOutAdmin() {
    return request({
        url: '/auth/logout_4_admin',
        method: 'get',
        isLogin: true
    })
}

// 重置密码
export function resetPwd(data) {
    return request({
        url: '/customer/reset_pwd',
        method: 'post',
        data,
        isFile: true,
        isLogin: true
    })
}